Passing Query Parameters Dynamically
This document outlines a use case demonstrating how to pass query parameters dynamically in DevAssure API requests. This functionality allows users to construct API requests with varying query parameters, enhancing the flexibility and reusability of API tests.
The below example illustrates how to dynamically pass query parameter to the API endpoint using DevAssure.

-
Step 1: Configure a GET request to the
https://opentdb.com/api.php/${urlappend}
endpoint.- URL:
https://opentdb.com/api.php/${urlappend}
- Method: GET
- URL:
-
Step 2: Add the
user
query parameter with a dynamic value.- Key:
user
- Value:
user
- Key:
-
Step 3: Add the
urlappend
query parameter with a dynamic value.- Key:
urlappend
- Value: (Dynamically passed as part of the URL path)
- Key: